package com.zulu.watchall.ui.widget;

import android.app.ProgressDialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.zulu.watchall.R;

public class CustomProgressDialog {

	ProgressDialog progressDialog;

	public CustomProgressDialog(Context context, String mess) {
		progressDialog = ProgressDialog.show(context, null, null);
		View view = LayoutInflater.from(context).inflate(
				R.layout.custom_progress_dialog_layout, null);
		TextView tvContextMess = (TextView) view
				.findViewById(R.id.tv_content_mess);
		tvContextMess.setText(mess);
		progressDialog.setContentView(view);
	}

	public void hideDialog() {
		progressDialog.dismiss();
	}
}
